<?php
include("connection/connection.php");
if(isset($_POST['submit']))
{
$frm=$_POST['sch_id'];
$scheme_name=$_POST['scheme_name'];
$YOC=$_POST['YOC'];
$CC=$_POST['CC'];
$type_scheme=$_POST['type_scheme'];
if($_POST['scheme_sactioned']!='Other')
		{
			$scheme_sactioned=$_POST['scheme_sactioned'];
		}
		else
		{
			$scheme_sactioned=$_POST['scheme_sactioned_other'];
		}

$qr="update tbl_dtls_q1_main set name_scheme='$scheme_name',year_comm='$YOC',capital_cost='$CC',scheme_sactioned='$scheme_sactioned' where id='$frm'";
$res=mysql_query($qr);
if($res)
{
header("location:q1_rwss_edit.php");
}
}
?>